home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(eval("/Variables:FeuParti") == true)
- {
- }
- if(Key.isDown(Key.RIGHT) and eval("/Variables:PositionFusee") < 120)
- {
- set("/Variables:PositionFusee",eval("/Variables:PositionFusee") + 20);
- setProperty("../Portail/Mains", _X, getProperty("../Portail/Mains", _X) + 20);
- setProperty("../Portail/Mains", _rotation, getProperty("../Portail/Mains", _rotation) + 2);
- if(eval("/Variables:FeuParti") == false)
- {
- setProperty("../Portail/Feu", _X, getProperty("../Portail/Feu", _X) + 20);
- setProperty("../Portail/Feu", _rotation, getProperty("../Portail/Feu", _rotation) + 2);
- }
- }
- if(Key.isDown(Key.LEFT) and -120 < eval("/Variables:PositionFusee"))
- {
- set("/Variables:PositionFusee",eval("/Variables:PositionFusee") - 20);
- setProperty("../Portail/Mains", _X, getProperty("../Portail/Mains", _X) - 20);
- setProperty("../Portail/Mains", _rotation, getProperty("../Portail/Mains", _rotation) - 2);
- if(eval("/Variables:FeuParti") == false)
- {
- setProperty("../Portail/Feu", _X, getProperty("../Portail/Feu", _X) - 20);
- setProperty("../Portail/Feu", _rotation, getProperty("../Portail/Feu", _rotation) - 2);
- }
- }
- if(Key.isDown(Key.DOWN) and 0 < eval("/Variables:PositionHauteur"))
- {
- set("/Variables:PositionHauteur",eval("/Variables:PositionHauteur") - 20);
- setProperty("../Portail/Mains", _Y, getProperty("../Portail/Mains", _Y) + 20);
- if(eval("/Variables:FeuParti") == false)
- {
- setProperty("../Portail/Feu", _Y, getProperty("../Portail/Feu", _Y) + 20);
- }
- }
- if(Key.isDown(Key.UP) and eval("/Variables:PositionHauteur") < 180)
- {
- set("/Variables:PositionHauteur",eval("/Variables:PositionHauteur") + 20);
- setProperty("../Portail/Mains", _Y, getProperty("../Portail/Mains", _Y) - 20);
- if(eval("/Variables:FeuParti") == false)
- {
- setProperty("../Portail/Feu", _Y, getProperty("../Portail/Feu", _Y) - 20);
- }
- }
- }
-